import request from '@/utils/request'

// 获取随机考题
export function randomQuestion(data) {
  return request({
    url: '/student/randomQuestion',
    method: 'post',
    data
  })
}
// 获取考卷题目
export function getExamInfoById(params) {
  return request({
    url: '/student/getExamInfoById',
    method: 'get',
    params
  })
}

// 获取题目内容
export function findQuestionInfo(params) {
  return request({
    url: '/student/findQuestionInfo',
    method: 'get',
    params
  })
}

// 获取已考考卷内容
export function getExamByUser(params) {
  return request({
    url: '/student/getExamByUser',
    method: 'get',
    params
  })
}

// 提交答卷接口
export function insertExamRecord(data) {
  return request({
    url: '/student/insertExamRecord',
    method: 'post',
    data
  })
}
